#ifndef _GUI_CUTAWAY_H
#define _GUI_CUTAWAY_H

namespace CEGUI
{
	class Window;
	class PushButton;
	class Editbox;
};



namespace GUI
{
	class CutawayControler 
	{
	public:
		CutawayControler(CEGUI::Window *ParentSheet);
		~CutawayControler();
		
		void setMaximumCutaway(unsigned int maxCut) {mMaxCutLevel = maxCut;}
		unsigned int getCutawayLevel() {return mCutawayLevel;}

	private:
		unsigned int mCutawayLevel;
		unsigned int mMaxCutLevel;
		CEGUI::Window *mWindow;
		CEGUI::PushButton *mIncrease,*mDecrease;
		CEGUI::Editbox *mCutValue;
		void initEvents();
		bool IncreaseCut(const CEGUI::EventArgs& e);
		bool DecreaseCut(const CEGUI::EventArgs& e);
		
	};
};
#endif